package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    //微信登录
    String wxLogin(String code);
    //获取用户信息
    UserInfoVo getUserInfo(Long userId);
    //更新用户信息
    void updateUser(UserInfoVo userInfoVo);

    //根据id查询用户信息
    UserInfo getUserInfoById(Long userId);
    //判断用户是否购买专辑下的声音
    Map<Long, Long> userIsPaidTrack(Long albumId, List<Long> trackIdList);
    //判断用户是否购买专辑
    Boolean isPaidAlbum(Long albumId, Long userId);
    //查询用户购买过的声音集合
    List<Long> findUserTrackPaidList(Long albumId);

    //更新用户购买记录
    void updateUserPaidRecord(UserPaidRecordVo userPaidRecordVo);

    void updateVipExpireStatus();
}
